package com.hsjk.szwj.module.train.enums;

import com.hsjk.szwj.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/08/19 22:18
 **/
@Getter
@AllArgsConstructor
public enum SubjectEnum implements IntArrayValuable {
    ONE(1, "科目一"),
    FOUR(4, "科目四");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(SubjectEnum::getType).toArray();

    /**
     * 类型
     */
    private final Integer type;
    /**
     * 类型名
     */
    private final String name;

    @Override
    public int[] array() {
        return ARRAYS;
    }
}
